home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Programming / MuManual / Include / libraries / 68040.h next >
C/C++ Source or Header  |  1999-10-31  |  2KB  |  49 lines

  1. /*************************************************************************
  2.  ** 68040.library                                                    **
  3.  **                                                                     **
  4.  ** CPU driver library for the 68040                    **
  5.  **                                                                     **
  6.  ** © 1999 THOR-Software, Thomas Richter                                **
  7.  ** No commercial use, reassembly, modification without prior, written  **
  8.  ** permission of the authors.                                          **
  9.  ** Including this library in any commercial software REQUIRES a        **
  10.  ** written permission and the payment of a small fee.                  **
  11.  **                                                                     **
  12.  **---------------------------------------------------------------------**
  13.  ** Definition of the library, and structures                           **
  14.  **                                    **
  15.  ** $VER: 40.2 (31.10.99) © THOR                                   **
  16.  *************************************************************************/
  17.  
  18. #ifndef LIBRARIES_68040_H
  19. #define LIBRARIES_68040_H
  20.  
  21. /* There's really nothing in this library base you need to care about */
  22.  
  23. struct MC68040Base {
  24.         struct Library  dllib_Library;
  25.         /* more below this point */
  26. };
  27.  
  28. #define MC68040_NAME "68040.library"
  29.  
  30. /* Bit definitions for the FPUControl call, exception disable */
  31.  
  32. #define FPUCtrlB_BSUN    0L    /* disable branch or set on unordered */
  33. #define FPUCtrlB_INEX    1L    /* disable inexact result exception */
  34. #define FPUCtrlB_DIVZ    2L    /* disable divide by zero exception */
  35. #define FPUCtrlB_UNFL    3L    /* disable underflow exception */
  36. #define FPUCtrlB_OVFL    4L    /* disable overflow exception */
  37. #define FPUCtrlB_SNAN    5L    /* disable signalling NAN exception */
  38. #define FPUCtrlB_OPERR    6L    /* disable operand error exception */
  39.  
  40. #define FPUCtrlF_BSUN    (1L<<0L)
  41. #define FPUCtrlF_INEX    (1L<<1L)
  42. #define FPUCtrlF_DIVZ    (1L<<2L)
  43. #define FPUCtrlF_UNFL    (1L<<3L)
  44. #define FPUCtrlF_OVFL    (1L<<4L)
  45. #define FPUCtrlF_SNAN    (1L<<5L)
  46. #define FPUCtrlF_OPERR    (1L<<6L)
  47.  
  48. #endif
  49.